<?php
interface Workflow_DefinitionStorage
{
	/**
     * Load a workflow definition by name.
     *
     * @param  string  $workflowName
     * @param  int $workflowVersion
     * @return Workflow_Definition
     * @throws 
     */
    public function loadByName( $workflowName, $workflowVersion = 0 );

    /**
     * Save a workflow definition to the database.
     *
     * @param  Workflow_Definition $workflow
     * @throws 
     */
    public function save( Workflow_Definition $workflow );
}
?>